package ObjectAndObjects;

public class Test1 {
    public static void main(String[] args) {

        //1、toString 返回对象的字符串表示形式（重写完返回属性值）
        Object obj=new Object();
        String str1=obj.toString();
        System.out.println(str1);

        Student stu=new Student("zhangsan",23);
        String str2=stu.toString();
        System.out.println(str2);

        System.out.println(stu);
    }
}
